Sets the element at the specified index. Fails if the provided index is out of bounds.
0.6.0
The index of the element to set.
The value to set.